<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>我的商城</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: Arial, sans-serif;
        }
        body {
            background-color: #f8f8f8;
        }
        .navbar {
            background-color: #333;
            padding: 10px;
            text-align: center;
        }
        .navbar ul {
            list-style: none;
            display: flex;
            justify-content: center;
        }
        .navbar ul li {
            margin: 0 15px;
        }
        .navbar ul li a {
            color: white;
            text-decoration: none;
            font-size: 18px;
            padding: 10px;
        }
        .navbar ul li a:hover {
            background-color: #555;
            border-radius: 5px;
        }
        .container {
            max-width: 1200px;
            min-height: auto;
            margin: 20px auto;
            padding: 20px;
            background: white;
            border-radius: 8px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        h1, h2 {
            text-align: center;
            margin-bottom: 20px;
        }
        .products {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
        }
        .product {
            background: #fff;
            border-radius: 8px;
            padding: 15px;
            text-align: center;
            width: 250px;
            margin: 10px;
            box-shadow: 0 0 10px rgba(0,0,0,0.1);
        }
        .product img {
            width: 100%;
            height: auto;
            border-radius: 8px;
        }
        .product p.price {
            font-size: 18px;
            font-weight: bold;
            color: #e60000;
            margin-top: 5px;
        }
        .product a {
            display: block;
            margin-top: 10px;
            padding: 8px;
            background-color: #007BFF;
            color: white;
            text-decoration: none;
            border-radius: 5px;
        }
        .product a:hover {
            background-color: #0056b3;
        }
        .footer {
            background-color: #333;
            color: white;
            text-align: center;
            padding: 15px;
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar">
        <ul>
            <li><a href="#">首页</a></li>
            <li><a href="#">商品</a></li>
            <li><a href="#">购物车</a></li>
            <li><a href="#">电脑</a></li>
        </ul>
    </nav>
    
    <div class="container">
        <h1>欢迎来到我的商城</h1>
        <h2>推荐商品</h2>
        <div class="products">
            <div class="product">
                <img src="phone.png" alt="智能手机">
                <h3>Redmi K80</h3>
                <p>高性能智能手机，体验非凡。</p>
                <p class="price">¥2499</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product">
                <img src="laptop.jpg" alt="笔记本电脑">
                <h3>笔记本电脑</h3>
                <p>轻薄便携，高效办公。</p>
                <p class="price">¥8499</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product">
                <img src="headphones.jpg" alt="无线耳机">
                <h3>无线耳机</h3>
                <p>沉浸式音乐体验，高清音质。</p>
                <p class="price">¥1299</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product">
                <img src="camera.jpg" alt="数码相机">
                <h3>数码相机</h3>
                <p>捕捉精彩瞬间，高清拍摄。</p>
                <p class="price">¥3978</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product">
                <img src="tablet.jpg" alt="平板电脑">
                <h3>平板电脑</h3>
                <p>高清大屏，流畅体验。</p>
                <p class="price">¥2299</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product">
                <img src="smartwatch.jpg" alt="智能手表">
                <h3>智能手表</h3>
                <p>时尚健康管理助手。</p>
                <p class="price">¥999</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product"> 
                <img src="macmini.jpg" alt="Apple AI电脑"> 
                <h3>Apple AI电脑</h3>
                <p>16G 256G，10Gb以太网。</p>
                <p class="price">¥9999</p>
                <a href="#">查看详情</a>
            </div>
            <div class="product">
                <img src="monitor.jpg" alt="高清显示器">
                <h3>高清显示器</h3>
                <p>超清分辨率，流畅视觉体验。</p>
                <p class="price">¥1199</p>
                <a href="#">查看详情</a>
            </div>
        </div>
    </div>
    
    <!-- 底部 -->
    <footer class="footer">
        <p>&copy; 2025 我的商城. All rights reserved.</p>
    </footer>
</body>
</html>
